import org.junit.Test;
import xxxx.com.utils.MailUtil;
import xxxx.com.utils.PageUtil;

public class demo01 {

    @Test
    public void test() {
        System.out.println("Hello");
    }

    @Test
    public void method01() {
        String email = "1069325365@qq.com";
        try {
            MailUtil.send(email, "主题", "菠萝菠萝", MailUtil.UNICODE);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void method02() {
        long currentPage = 1;
        long totalPage = 22;
        long startPage = PageUtil.getStartPage(currentPage) + 1;
        long endPage = PageUtil.getEndPage(currentPage, totalPage);
        System.out.println(startPage + "--" + endPage);
    }
}
